package com.topboya.linker.ui.activity;

import android.support.v7.widget.Toolbar;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;

import com.topboya.linker.R;
import com.topboya.linker.ui.base.Presenter.BasePresenter;
import com.topboya.linker.ui.base.activity.BaseActivity;
import com.topboya.linker.utils.AndroidUtils;

public class AboutUsActivity extends BaseActivity {

    private static final String TAG = "AboutUsActivity";
    private Toolbar toolbar;
    private TextView toolbar_title;
    private TextView tv_toolbar_right;
    private TextView tv_version;
    @Override
    protected int getLayoutId() {

        return R.layout.activity_aboutus;
    }

    @Override
    protected void initView() {

        toolbar = findViewById(R.id.toolbar);
        toolbar_title = findViewById(R.id.toolbar_title);
        tv_toolbar_right = findViewById(R.id.tv_toolbar_right);
        tv_version = findViewById(R.id.tv_version);
       initTitl();
    }

    private void initTitl() {

        toolbar_title.setText("关于我们");
        tv_toolbar_right.setVisibility(View.GONE);

    }

    @Override
    protected void initData() {

       String verison = AndroidUtils.getVersion(this);
        tv_version.setText("版本号 "+verison);
    }

    @Override
    protected void initListener() {

        toolbar.setNavigationOnClickListener(v -> { finish(); });


    }

    @Override
    protected BasePresenter createPresenter() {
        return null;
    }
}
